package org.jeecg.modules.zhima.base.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface IBaseApi {
    /**
     * 文件上传
     * @param file 文件
     * @param bizPath 自定义路径
     * @param uploadType 上传方式
     * @return
     */
    public String upload(MultipartFile file, String bizPath, String uploadType);

    /**
     * 文件上传 自定义桶
     * @param file
     * @param bizPath
     * @param uploadType
     * @param customBucket
     * @return
     */
    public String upload(MultipartFile file,String bizPath,String uploadType,String customBucket);

    /**
     * 文档管理文件下载预览
     * @param filePath
     * @param uploadpath
     * @param response
     */
    public void viewAndDownload(String filePath, String uploadpath, String uploadType, HttpServletResponse response);

}
